package com.owen.oauth2.client.connect;

import com.owen.oauth2.client.api.MyOAuth2;
import com.owen.oauth2.client.api.MyOAuth2Impl;
import org.springframework.social.oauth2.AbstractOAuth2ServiceProvider;

public class MyOAuth2ServiceProvider extends AbstractOAuth2ServiceProvider<MyOAuth2> {

    public MyOAuth2ServiceProvider(String appId,String appSecurity) {
        super(new MyOAuth2Template(appId,appSecurity));
    }

    @Override
    public MyOAuth2 getApi(String accessToken) {
        return new MyOAuth2Impl(accessToken);
    }
}
